import xadmin

from .models import ArticleCollection
class ArticleCollectionModelAdmin(object):
    list_display = ["id","name"]
xadmin.site.register(ArticleCollection,ArticleCollectionModelAdmin)

from .models import Article
class ArticleAdmin(object):

    list_display = ["title", "content", "html_content","is_public","pub_date"]

xadmin.site.register(Article,ArticleAdmin)
